using System;

namespace Common
{
	/// <summary>
	/// 每一个需要现实在地图上的元素
	/// 都必须集成此类
	/// </summary>
	public abstract class BaseEntity
	{
		public int Id {
			set;
			get;
		}

		public BaseEntity (int id)
		{
			this.Id = id;
			Logger.log("new entity produced :" + this.ToString());
		}

		/// <summary>
		/// 刷新
		/// </summary>
		/// <param name="currentTimeMills">Current time mills.</param>
		public abstract void OnUpdate(long currentTimeMills);
	}
}

